package com.seawaterbt.ssm.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seawaterbt.ssm.config.DataSource;
import com.seawaterbt.ssm.config.DataSourceEnum;
import com.seawaterbt.ssm.entity.ZComplainInfo;
import com.seawaterbt.ssm.mapper.ZComplainInfoMapper;
import com.seawaterbt.ssm.service.ZComplainInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhf
 * @since 2019-10-31
 */
@Service
public class ZComplainInfoServiceImpl extends ServiceImpl<ZComplainInfoMapper, ZComplainInfo> implements ZComplainInfoService {

    @DataSource(DataSourceEnum.DB3)
    @Override
    public boolean saveOrUpdate(ZComplainInfo entity) {
        return super.saveOrUpdate(entity);
    }
    @DataSource(DataSourceEnum.DB3)
    @Override
    public List<ZComplainInfo> list(Wrapper<ZComplainInfo> queryWrapper) {
        return super.list(queryWrapper);
    }
    @DataSource(DataSourceEnum.DB3)
    @Override
    public ZComplainInfo getOne(Wrapper<ZComplainInfo> queryWrapper) {
        return super.getOne(queryWrapper);
    }
}
